home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-08-16 | 1.3 KB | 67 lines |
- #
- # The name of the accessory.
- #
- ACCESS = splitter
-
- #
- # The source files that you need to build the accessory.
- #
- MYSRCS = splitter.c
-
- MYHDRS = myheader.h
-
- #
- # You might want to tinker with the compiler flags and libraries.
- #
- # -3.0 - Compile for a 3.0 system (optional)
- # -mc - Small code model
- # -md - Small data model
- #
- CFLAGS = -3.0 -mc -md
-
- #
- # Required libraries
- #
- # amiga30s.lib - The small code version of the Amiga library
- # cs.lib - The small code version of the C library
- #
- LIBS = amiga30s.lib cs.lib
-
- #
- # You shouldn't have to touch anything below here.
- #
- # (FYI: (It's important that toolstart.c gets listed first... toolstart.o
- # has to be the first thing mentioned when the accessory is linked
- # together.)
- #
- PACCESS = $(ACCESS).paccess
- README = $(ACCESS).readme
- ARCHIVE = $(ACCESS).lha
-
- SRCS = toolstart.c $(MYSRCS)
- OBJS = $(SRCS:*.c:*.o)
-
- all: $(PACCESS)
-
- $(PACCESS): $(OBJS)
- dlink $(OBJS) $(LIBS) -o $(PACCESS)
-
- $(OBJS): $(SRCS)
- dcc $(CFLAGS) -c %(right) -o %(left)
-
- # I use emacs, so I tend to have a lot of backup files ending in ``!''
- # lying around.
- clean:
- delete $(OBJS) *!
-
- clobber: clean
- delete $(PACCESS) $(ARCHIVE)
-
- distribution: $(ARCHIVE)
-
- $(ARCHIVE): clobber $(PACCESS) clean
- lha a $(ARCHIVE) dmakefile $(PACCESS) $(MYHDRS) $(MYSRCS) $(README)
-
-
-
-